package com.wiiss.common.exception;

/**
 * 自定义异常信息
 */
public enum ExceptionInfo {
    ERROR("500", "系统内部错误"),
    WMS_REQ_AVAILABLE_ERR("510", "wms 请求/取消库位失败"),
    ACS_CREATE_ERR("511", "创建ACS任务失败"),
    ROUTE_CONTROL_ERR("512", "任务管控异常"),
    PRE_MISSION_NOT_EXIST("513", "前置任务不存在"),
    AUTO_WIP_NO_DEV_DEV("514", "自动库到库任务没有找到路线"),
    AUTO_WIP_NO_PROCESS("515", "自动库到库任务没有物料制程"),
    WIP_CREATE_ERR("516", "创建WIP任务失败"),
    PRODUCT_STATUS_DEV_DEV("517", "产品状态与路线配置中的不匹配"),
    NOT_FOUND_DOCK("518", "未找到对应货口信息"),
    NOT_SYN_LOCK("519", "未获取到分布式锁"),
    DEMOTION_ERR("521", "连接超时或无法解析返回结果"),
    COMPLETE_CHECK_WIP_ALARM_ERR("522", "%s异常，请确认！"),


    TEST_ERROR("999", "测试失败");

    private final String code;
    private final String msg;

    ExceptionInfo(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
